{% extends "base.html" %}

{% load wagtailcore_tags wagtailimages_tags i18n %}

{% block body_class %}template-blogpage{% endblock %}

{% block content %}
    <h1>{{ page.title }}</h1>
    <p class="meta">{{ page.date }}</p>

    <div class="intro">{{ page.intro }}</div>

    {{ page.body|richtext }}

    <section>
        {% for item in page.gallery_images.all %}
            <div style="display: inline-block; margin: 10px">
                {% image item.image fill-320x240 %}
                <p>{{ item.caption }}</p>
            </div>
        {% endfor %}
    </section>

    <p><a href="{{ page.get_parent.url }}">{% trans "Retrun to news." %}</a></p>
{% endblock %}
